
abstract class Father{
	private	int money;

	public void setMoney(int money) {this.money = money;}
	public int getMoney() {return money;}

	public abstract void study();

}

interface A {
	public static final int i = 10;
	public abstract int getNum(); 
}

interface B {
	public static final String name = " InterfaceB ";
	public abstract String getName(); 
	
}

class Son extends Father implements A,B {
	public int getNum() {return i;}
	public String getName() {return name;}
	
	public void study() {System.out.println("I am studying");}
}

public class Ext7{
	public static void main(String args[]) {
		Son son = new Son();
		System.out.println(son.getName()) ;
		son.study();
	}	
	
}














